<template>
  <div class="alet_container">
    <section class="tip_text_container">
      <section class="close" @click="closeTip">关闭</section>
    </section>
  </div>
</template>

<script>
export default {
  data() {
    return {
      positionY: 0,
      timer: null
    };
  },
  mounted() {},
  props: ["alertText"],
  methods: {
    closeTip() {
      this.$emit("closeTip");
    }
  }
};
</script>

<style lang="less" scoped>
@import "@/style/mixin";
@keyframes tipMove {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.alet_container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 1;
  background: rgba(0, 0, 0, .8);
}
.tip_text_container {
  position: absolute;
  top: 20%;
  left: 15%;
  width: 70%;
  animation: tipMove 0.4s;
  background-color: @ptdl;
  border: 1px;
  padding-top: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px;
  border-radius: 0.5rem;
  .tip_text {

    h3{
       text-align: center;
    }
     ul{
         display: block;
         margin-top: 1rem;
     }
    ul li{
        display:inline-block;
        margin: 0 10%;
        height: 2rem;
        line-height: 2rem;
        text-align: center;
        width: 80%;
        // margin: 0 auto;
        margin-bottom: .5rem;
        background-color: $fgx;
    }
    li:hover{
        background-color: $pink;
    }
  }
  .close {
    font-size: 0.4rem;
    font-weight: 500;
    margin-top: 0.2rem;
    background-color:@pt;
    color: @ff;
    width: 100%;
    text-align: center;
    line-height: 3rem;
    border: 1px;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }
}
</style>
